<!doctype HTML public "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- Click to Convert 5.2: Anything to HTML -->
<!-- http://www.clicktoconvert.com -->

<html>
<head>
<title>gravityboxscheduleuserguide - page 126 of 234</title>
<meta http-equiv=content-type content=text/html;charset=iso-8859-1>
<meta name="Generator" content="Click to Convert">

<!--Start of page styles-->
<STYLE TYPE="text/css">
<!--
 /* Foreground Image Styles */

 /* Position Styles */
 .ts126p0{position:absolute;left:106px;top:97px;}
 .ts126p1{position:absolute;left:352px;top:97px;}
 .ts126p3{position:absolute;left:665px;top:97px;}
 .ts126p7{position:absolute;left:106px;top:113px;}
 .ts126p8{position:absolute;left:706px;top:1026px;}
 .ts126p9{position:absolute;left:331px;top:1044px;}
 .ts126p13{position:absolute;left:106px;top:146px;}
 .ts126p14{position:absolute;left:106px;top:164px;}
 .ts126p15{position:absolute;left:106px;top:183px;}
 .ts126p17{position:absolute;left:106px;top:201px;}
 .ts126p19{position:absolute;left:106px;top:220px;}
 .ts126p20{position:absolute;left:106px;top:238px;}
 .ts126p21{position:absolute;left:106px;top:256px;}
 .ts126p23{position:absolute;left:106px;top:293px;}
 .ts126p24{position:absolute;left:106px;top:312px;}
 .ts126p26{position:absolute;left:106px;top:330px;}
 .ts126p27{position:absolute;left:106px;top:348px;}
 .ts126p30{position:absolute;left:106px;top:367px;}
 .ts126p32{position:absolute;left:106px;top:385px;}
 .ts126p33{position:absolute;left:106px;top:404px;}
 .ts126p34{position:absolute;left:106px;top:422px;}
 .ts126p36{position:absolute;left:106px;top:440px;}
 .ts126p37{position:absolute;left:106px;top:459px;}
 .ts126p39{position:absolute;left:106px;top:477px;}
 .ts126p41{position:absolute;left:114px;top:477px;}
 .ts126p42{position:absolute;left:376px;top:495px;}
 .ts126p44{position:absolute;left:282px;top:514px;}
 .ts126p45{position:absolute;left:553px;top:590px;}
 .ts126p46{position:absolute;left:106px;top:605px;}
 .ts126p48{position:absolute;left:114px;top:605px;}
 .ts126p49{position:absolute;left:106px;top:623px;}
 .ts126p50{position:absolute;left:106px;top:642px;}
 .ts126p51{position:absolute;left:106px;top:660px;}
 .ts126p52{position:absolute;left:106px;top:679px;}
 .ts126p54{position:absolute;left:106px;top:697px;}
 .ts126p56{position:absolute;left:106px;top:715px;}
 .ts126p57{position:absolute;left:106px;top:735px;}
 .ts126p59{position:absolute;left:106px;top:753px;}
 .ts126p61{position:absolute;left:106px;top:771px;}
 .ts126p63{position:absolute;left:106px;top:789px;}
 .ts126p65{position:absolute;left:106px;top:806px;}
 .ts126p69{position:absolute;left:106px;top:826px;}
 .ts126p71{position:absolute;left:114px;top:826px;}
 .ts126p72{position:absolute;left:106px;top:844px;}
 .ts126p74{position:absolute;left:106px;top:863px;}
 .ts126p75{position:absolute;left:106px;top:881px;}
 .ts126p77{position:absolute;left:106px;top:899px;}
 .ts126p78{position:absolute;left:106px;top:918px;}
 .ts126p79{position:absolute;left:106px;top:936px;}
 .ts126p81{position:absolute;left:106px;top:955px;}
 .ts126p83{position:absolute;left:106px;top:973px;}
 .ts126p84{position:absolute;left:552px;top:292px;}
 .ts126p86{position:absolute;left:552px;top:304px;}
 .ts126p89{position:absolute;left:552px;top:316px;}
 .ts126p91{position:absolute;left:552px;top:623px;}
 .ts126p93{position:absolute;left:552px;top:634px;}
 .ts126p95{position:absolute;left:552px;top:647px;}

 /* Font Styles */
 .ft0p126{font-style:normal;font-weight:bold;font-size:13px;font-family:arial,sans-serif;color:#000000;}
 .ft1p126{font-weight:normal;}
 .ft2p126{font-style:normal;font-weight:normal;font-size:13px;font-family:"times new roman","times new roman",times,serif;color:#000000;}
 .ft3p126{font-style:normal;font-weight:normal;font-size:16px;font-family:"times new roman","times new roman",times,serif;color:#000000;}
 .ft4p126{font-style:normal;font-weight:bold;font-size:11px;font-family:arial,sans-serif;color:#000000;}
 .ft5p126{font-style:normal;font-weight:normal;font-size:16px;font-family:arial,sans-serif;color:#000000;}
 .ft6p126{font-style:normal;font-weight:bold;font-size:21px;font-family:arial,sans-serif;color:#808080;}
 .ft7p126{font-style:normal;font-weight:bold;font-size:16px;font-family:helvetica,arial,sans-serif;color:#000000;}
 .ft8p126{font-style:normal;font-weight:normal;font-size:16px;font-family:"courier new",courier,monospace;color:#000000;}
 .ft9p126{font-style:normal;font-weight:bold;font-size:11px;font-family:arial,sans-serif;color:#FFFFFF;}
 .ft10p126{font-style:normal;font-weight:normal;font-size:11px;font-family:arial,sans-serif;color:#000000;}

 /* Background Style */
 .styleBackground126{position:absolute;left:97px;top:292px}

 /* Navigation Styles */
 .styleNavBarTop{position:absolute;left:0px;top:2px}
 .nb{position:absolute;left:2px;top:0px}
 .nbs{position:absolute;left:0px;top:0px}
 .nbe{position:absolute;left:836px;top:0px}
 .styleNavBarBot{position:absolute;left:0px;top:1117px}
-->
</STYLE>
<!--End of page styles-->

</head>
<body bgcolor="#ffffff" text="#000000" link="#0000FF" Vlink="#660099">

<table id="pageTable" width="836" STYLE="position: relative; left: auto; top: auto;"><tr><td>
<div class=nbs><img src="./navbarstart.gif" width="2" height="30"></div>
<div class=nb><img src="./navbar.gif" width="836" height="30" alt="Navigation bar"></div>
<div class=nbe><img src="./navbarend.gif" width="2" height="30"></div>
<div class=styleNavBarTop>
<table width="834" height="26" border="0" cellspacing="0">
  <tr align="left">
    <td width="4">&nbsp;</td>
    <td width="25" align="center"><a href="http://www.gravitybox.com" target="_parent"><img src="./home.gif" border="0" alt="Home"></a></td>
    <td width="25" align="center"><a href="#" onClick="window.open('./print.html','Printing','width=300,height=100,toolbar=no,directories=no');return false;"><img src="./print.gif" border="0" alt="Print document"></a></td>
    <td width="10" align="center"><img src="./separator.gif" border="0"></td>
    <td width="18" align="center"><a href="./index1.html"><img src="./start.gif" width="18" height="14" border="0" alt="Start"></a></td>
    <td width="18" align="center"><a href="./index125.html"><img src="./back.gif" width="14" height="14" border="0" alt="Previous page"></a></td>
    <td width="80" valign="middle"><table width="100%" height="16" border="0" cellspacing="1" bgcolor="#ACA899"><tr><td align="center" bgcolor="#ffffff"><font face=verdana,arial,sans-serif><font size="1">&nbsp;126 of 234&nbsp;</font></font></td></tr></table></td>
    <td width="18" align="center"><a href="./index127.html"><img src="./forward.gif" width="14" height="14" border="0" alt="Next page"></a></td>
    <td width="18" align="center"><a href="./index234.html"><img src="./end.gif" width="18" height="14" border="0" alt="End"></a></td>
    <td width="620">&nbsp;</td>
  </tr>
</table>
<p>
</div>
<nobr>
<div class=styleBackground126><img src="./background126.png" width="641" height="763" border="0" alt=""></div>
<div class=ts126p0><span class="ft0p126"> </span></div>
<div class=ts126p1><span class="ft0p126">Gravitybox Schedule Primer<span class="ft1p126"> </span></span></div>
<div class=ts126p3><span class="ft0p126">Page 124&nbsp; </span></div>
<div class=ts126p7><span class="ft2p126"> </span></div>
<div class=ts126p8><span class="ft3p126"> </span></div>
<div class=ts126p9><span class="ft4p126">1998&#45;2004 Gravitybox Software LLC<span class="ft3p126"> </span></span></div>
<div class=ts126p13><span class="ft5p126">collection is returned as a parameter to the event. If the index is zero, the &#147;Unassigned&#148; </span></div>
<div class=ts126p14><span class="ft5p126">row was clicked, which is not a real provider. Other parameters to the event are &#147;Button&#148; </span></div>
<div class=ts126p15><span class="ft5p126">and &#147;Shift&#148;, which allow you to know the mouse button clicked and whether the &#60;ALT&#62;, </span></div>
<div class=ts126p17><span class="ft5p126">&#60;CTRL&#62;, or &#60;SHIFT&#62; key was pressed at the time of the click. </span></div>
<div class=ts126p19><span class="ft5p126"> </span></div>
<div class=ts126p20><span class="ft5p126"> </span></div>
<div class=ts126p21><span class="ft6p126">TaskList Control </span></div>
<div class=ts126p23><span class="ft5p126">The TaskList control may be used to list a number of tasks </span></div>
<div class=ts126p24><span class="ft5p126">for the user. The columns are configurable. Any number of </span></div>
<div class=ts126p26><span class="ft5p126">columns may be added with any of the following types: </span></div>
<div class=ts126p27><span class="ft5p126">Date, Text, Time, and NoEdit. These are self&#45;explanatory except for the NoEdit. This </span></div>
<div class=ts126p30><span class="ft5p126">setting will display the text but will not allow the user to modify its contents. The top </span></div>
<div class=ts126p32><span class="ft5p126">portion of the control may be used to add new tasks to the list. This may be toggled </span></div>
<div class=ts126p33><span class="ft5p126">on/off depending on the application&#146;s specific needs. Each Task may be checked or </span></div>
<div class=ts126p34><span class="ft5p126">unchecked in the second column. The checked tasks have their PercentComplete </span></div>
<div class=ts126p36><span class="ft5p126">property set to 100%. When unchecked, this property may be any whole number from 0 </span></div>
<div class=ts126p37><span class="ft5p126">to 99. This allows users to assign completion percents to each task if desired.&nbsp; </span></div>
<div class=ts126p39><span class="ft5p126">&nbsp; </span></div>
<div class=ts126p41><span class="ft5p126"> </span></div>
<div class=ts126p42><span class="ft7p126">Figure 13.4 </span></div>
<div class=ts126p44><span class="ft3p126"> </span></div>
<div class=ts126p45><span class="ft5p126"> </span></div>
<div class=ts126p46><span class="ft5p126">&nbsp; </span></div>
<div class=ts126p48><span class="ft5p126"> </span></div>
<div class=ts126p49><span class="ft5p126">The TaskList control starts with no columns. Any needed </span></div>
<div class=ts126p50><span class="ft5p126">columns must be added manually. This allows the control to </span></div>
<div class=ts126p51><span class="ft5p126">be totally configured by the developer&#146;s desires. The </span></div>
<div class=ts126p52><span class="ft5p126">following code will clear any columns that are already present and add four new </span></div>
<div class=ts126p54><span class="ft5p126">columns. Each column has its own data type. </span></div>
<div class=ts126p56><span class="ft5p126"> </span></div>
<div class=ts126p57><span class="ft8p126">Call TaskList1.Columns.Clear&nbsp; <span class="ft5p126"> </span></span></div>
<div class=ts126p59><span class="ft8p126">Call TaskList1.Columns.Add(&#34;Subject&#34;, ctText, , True) <span class="ft5p126"> </span></span></div>
<div class=ts126p61><span class="ft8p126">Call TaskList1.Columns.Add(&#34;Date&#34;, ctDate, , True) <span class="ft5p126"> </span></span></div>
<div class=ts126p63><span class="ft8p126">Call TaskList1.Columns.Add(&#34;Time&#34;, ctTime, , True) <span class="ft5p126"> </span></span></div>
<div class=ts126p65><span class="ft8p126">Call TaskList1.Columns.Add(&#34;Length&#34;, ctText, , True)<span class="ft5p126"> </span><span class="ft5p126"> </span></span></div>
<div class=ts126p69><span class="ft5p126">&nbsp; </span></div>
<div class=ts126p71><span class="ft5p126"> </span></div>
<div class=ts126p72><span class="ft5p126">&nbsp; When columns as added or removed, each Task of the TaskItems collection is </span></div>
<div class=ts126p74><span class="ft5p126">modified to have the same number of elements as the Columns collection. This ensures </span></div>
<div class=ts126p75><span class="ft5p126">that each Task will have the same number of TaskItems as columns are present. The </span></div>
<div class=ts126p77><span class="ft5p126">TaskItems collection is used to set the value that is to be displayed in the appropriate </span></div>
<div class=ts126p78><span class="ft5p126">column of the control. The code below adds a new Task. Since there exists 4 columns </span></div>
<div class=ts126p79><span class="ft5p126">on the control now, there are exactly 4 TaskItems for each Task object. So we set the </span></div>
<div class=ts126p81><span class="ft5p126">appropriate values for each TaskItem.&nbsp; </span></div>
<div class=ts126p83><span class="ft5p126"> </span></div>
<div class=ts126p84><span class="ft9p126">Quick Tip </span></div>
<div class=ts126p86><span class="ft10p126">Add MS&#45;Outlook type tasks to an </span></div>
<div class=ts126p89><span class="ft10p126">application with the Tasks control </span></div>
<div class=ts126p91><span class="ft9p126">Quick Tip </span></div>
<div class=ts126p93><span class="ft10p126">You must add columns first before </span></div>
<div class=ts126p95><span class="ft10p126">you can add task items. </span></div>
<div class=styleNavBarBot>
<table width="836" border="0" cellspacing="2">
  <tr></tr>
  <tr>
    <td width="118"><a href="http://www.purepage.com"><img src="./smalllogo.gif" width="118" height="46" border="0" alt="http://www.purepage.com"></a></td>
    <td></td>
  </tr>
</table>
</div>

</td></tr></table>

</body>
</html>
